<a href='/'>Home</a><br />

{% if obj == 'image' %}
<script type="text/javascript" src="/static/ckeditor/ckeditor/ckeditor.js"></script>

 {% for entry in entries.object_list %}
	<a href='#' onclick="window.opener.CKEDITOR.tools.callFunction(2, '/content/view/{{entry.get_absolute_url}}/', ''); window.close();"><img src=/content/view/t_{{entry.get_absolute_url}}/>{{entry.title}}</a><br />
 {% endfor %}
{% else %}
 {% for entry in entries.object_list %}
 	 <a href='/content/view/{{entry.get_absolute_url}}/'>{{entry.title}}</a><br />
 {% endfor %}
{% endif %}

<div class="pagination">
    <span class="step-links">
        {% if entries.has_previous %}
            <a href="/content/browse/{{obj}}/{{ entries.previous_page_number }}/">previous</a>
        {% endif %}

        <span class="current">
            Page {{ entries.number }} of {{ entries.paginator.num_pages }}.
        </span>

        {% if entries.has_next %}
            <a href="/content/browse/{{obj}}/{{ entries.next_page_number }}/">next</a>
        {% endif %}
    </span>
</div>
